package com.jvyou.thread.d02instance;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/30 9:21
 * @Description
 */
public class ThreadDemo {
    public static void main(String[] args) {
        // 首先创建一个Runnable接口的实现类
        MyRun myRun = new MyRun();
        // 创建一个Thread类对象，构造方法中传递Runnable接口的实现类对象
        Thread t1 = new Thread(myRun,"线程1");
        t1.start();
    }
}
